Sync to desktop - Federico
authorArturo Espinosa <unammx@src.gnome.org>
Mon, 1 Nov 1999 19:09:20 +0000 (19:09 +0000)
committerArturo Espinosa <unammx@src.gnome.org>
Mon, 1 Nov 1999 19:09:20 +0000 (19:09 +0000)
gdk-pixbuf/gnome-canvas-pixbuf.c

index 8195a608de858f243e81990470eee253fa4e0316..ab1b1121601818d8ceffe538241c57c9f65f9608 100644 (file)
@@ -615,9 +615,31 @@ gnome_canvas_pixbuf_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
                                           width, height, width * 4,
                                           NULL, NULL);
 
-       gdk_pixbuf_render_to_drawable (pixbuf, drawable, 0, 0, 0, 0, width, height,
-                                      GDK_RGB_DITHER_MAX, x, y);
+       gdk_pixbuf_render_to_drawable_alpha (pixbuf, drawable,
+                                            0, 0,
+                                            0, 0,
+                                            width, height,
+                                            GDK_PIXBUF_ALPHA_BILEVEL,
+                                            127,
+                                            GDK_RGB_DITHER_MAX,
+                                            x, y);
 
        gdk_pixbuf_unref (pixbuf);
        g_free (buf);
 }
+
+\f
+
+/* Point handler for the pixbuf canvas item */
+static double
+gnome_canvas_pixbuf_point (GnomeCanvasItem *item, double x, double y, int cx, int cy,
+                          GnomeCanvasItem **actual_item)
+{
+       GnomeCanvasPixbuf *gcp;
+       PixbufPrivate *priv;
+
+       gcp = GNOME_CANVAS_PIXBUF (item);
+       priv = gcp->priv;
+
+       
+}